<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>后盾人</title>
  </head>
  <body>
    <script>
      const date = new Date("1996-7-12 08:22:12");
      // console.log(date * 1);
      // console.log(Number(date));
      // console.log(date.valueOf());
      // console.log(date.getTime());
      const timestamp = date.valueOf();
      // console.log(timestamp);
      console.log(new Date(timestamp));
    </script>
  </body>
</html>
